package st.business.tepth.business.businfo;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import st.business.tepth.R;
import st.business.tepth.business.bean.BusWarnRecordBean;

/**
 * @author zhangyu
 * @date 2019/2/28
 */
public class BusWarnRecordAdapter extends BaseQuickAdapter<BusWarnRecordBean, BaseViewHolder> {
    public BusWarnRecordAdapter(int layoutResId, @Nullable List<BusWarnRecordBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BusWarnRecordBean item) {
        helper.setText(R.id.tv_date, item.getDate());
        helper.setText(R.id.tv_state, item.getType());
        helper.setText(R.id.tv_level, item.getLevel());
        helper.setText(R.id.tv_warn_content, item.getContent());
    }
}
